﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using WmsApp.WindowControl;

namespace WmsApp.WmsService
{
    public partial class PayApplyBillItem 
    {
        public static PayApplyBillItem CreatePayApplyBillItem(string inBillID)
        {
            var r = new PayApplyBillItem
            {
                PayApplyBillItemID = Guid.NewGuid().ToString(),
                PayApplyBillID = inBillID,
                PayAmount = 0
            };
            r.BindPropertyChanged();
            return r;
        }

        public void BindPropertyChanged()
        {
            this.PropertyChanged += WmsApp.EntityControl.PropertyChangedHandler.EntityObjectPropertyChanged;
        }
    }
}
